package com.cango.framework.base.opt.service.impl;

import java.util.List;

import com.cango.framework.base.opt.dao.AuthUserDao;
import com.cango.framework.base.entity.AuthUserEntity;
import com.cango.framework.base.opt.service.AuthUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cango.framework.base.entity.AuthUserEntity;
import com.cango.framework.base.opt.service.AuthUserService;

/** 
 * 系统用户业务操作<br> 
 * @author nj
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Service("authUserService")
public class AuthUserServiceImpl implements AuthUserService {
    
    @Autowired
    private AuthUserDao authUserDao;
    
    /**
     * 命名空间
     */
    private static final String SQL_NAMESPACE_AUTHUSER = "auth.";
    
    /**
     * SQLID
     */
    private static final String SQL_SELECT_USER_BY_CONDITIONS ="selectUserByConditions";
    
    @Override
    public List<AuthUserEntity> getUserByConditions(AuthUserEntity user) {
        return authUserDao.queryList(SQL_NAMESPACE_AUTHUSER + SQL_SELECT_USER_BY_CONDITIONS, user);
    }
}
